package com.csaba.connector.bha.model;

import java.util.Currency;

import com.csaba.connector.bha.SimpleNodeHelper;
import com.csaba.connector.model.Account;
import com.csaba.connector.model.Customer;
import com.ind.simplenode.SimpleNode;

public abstract class BHAAccount extends Account
{
	private static final long serialVersionUID = 913196770715502086L;

	public BHAAccount()
	{
		super();
		setBank(BHABank.getInstance());
	}

	public BHAAccount( final Customer customer, final SimpleNode properties )
	{
		this();
		setCustomer(customer);
		setCurrency(Currency.getInstance(SimpleNodeHelper.getAndRemove(properties, "currency")));
	}

}
